<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="../js/vue.js"></script>
	</head>
	<body>
		<div id="app">
			<button v-if="jg == 0" v-on:click="jg = 1">关灯</button>
			<button v-else v-on:click="jg = 0">开灯</button>
			<img v-if="jg == 1" src="../img/xiaoyixian.jpg" width="200" height="300"/>
			<img v-else src="../img/xiaoyixian01.jpg" width="200" height="300"/>
			
		</div>
		
		
		<script>
			Vue.createApp({
				data(){
					return{
						jg:0
					}
				}
				
			}).mount("#app")
			
			
			
		</script>
	</body>
</html>